package formbean;

import java.util.ArrayList;
import java.util.List;

import org.mybeans.form.FormBean;

public class VideoSaveConfNotesForm extends FormBean {
	
	
	private String notes;
	private String confName;
	private String button;


	
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
	
	public String getConfName() {
		return confName;
	}
	public void setConfName(String confName) {
		this.confName = confName;
	}
	public String getButton() {
		return button;
	}
	public void setButton(String button) {
		this.button = button.trim();
	}
	
	
	
	public List<String> getValidationErrors() {
		List<String> errors = new ArrayList<String>();

		if (confName == null || confName.length() == 0) {
			errors.add("confName is required");
		}
		
		
		return errors;
	}
}